package com.common.config;

public class ProjectConfig {
    private String projectName;
    private String packageName;
    private String projectPath;
    private String description;


    public String getProjectName() {
        return projectName;
    }

    public String getPackageName() {
        return packageName;
    }

    public String getProjectPath() {
        return projectPath;
    }

    public String getDescription() {
        return description;
    }


    public static final class ProjectConfigBuilder {
        private String projectName;
        private String packageName;
        private String projectPath;
        private String description;

        private ProjectConfigBuilder() {
        }

        public static ProjectConfigBuilder aProjectConfig() {
            return new ProjectConfigBuilder();
        }

        public ProjectConfigBuilder projectName(String projectName) {
            this.projectName = projectName;
            return this;
        }

        public ProjectConfigBuilder packageName(String packageName) {
            this.packageName = packageName;
            return this;
        }

        public ProjectConfigBuilder projectPath(String projectPath) {
            this.projectPath = projectPath;
            return this;
        }
        public ProjectConfigBuilder projectDescription(String description) {
            this.description = description;
            return this;
        }

        public ProjectConfig build() {
            ProjectConfig projectConfig = new ProjectConfig();
            projectConfig.packageName = this.packageName;
            projectConfig.projectName = this.projectName;
            projectConfig.projectPath = this.projectPath;
            projectConfig.description = this.description;
            return projectConfig;
        }
    }
}
